home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tools / jade / src / amiga_render.c < prev    next >
C/C++ Source or Header  |  1995-03-09  |  1KB  |  45 lines

  1. /* amiga_render.c -- Rendering for AmigaDOS
  2.    Copyright (C) 1993, 1994 John Harper <jsh@ukc.ac.uk>
  3.  
  4.    This file is part of Jade.
  5.  
  6.    Jade is free software; you can redistribute it and/or modify it
  7.    under the terms of the GNU General Public License as published by
  8.    the Free Software Foundation; either version 2, or (at your option)
  9.    any later version.
  10.  
  11.    Jade is distributed in the hope that it will be useful, but
  12.    WITHOUT ANY WARRANTY; without even the implied warranty of
  13.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.    GNU General Public License for more details.
  15.  
  16.    You should have received a copy of the GNU General Public License
  17.    along with Jade; see the file COPYING.    If not, write to
  18.    the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. #include "jade.h"
  21. #include "jade_protos.h"
  22.  
  23. #ifdef _DCC
  24. # define GfxBase_DECLARED
  25. #endif
  26. #include <clib/graphics_protos.h>
  27. #include <graphics/gfxbase.h>
  28. #include <graphics/gfxmacros.h>
  29.  
  30. _PR void sys_scroll_vw(VW *, long);
  31.  
  32. extern struct GfxBase *GfxBase;
  33.  
  34. /*
  35.  * Scrolls the view `lines' towards line 0,
  36.  */
  37. void
  38. sys_scroll_vw(VW *vw, long lines)
  39. {
  40.     struct RastPort *rp = vw->vw_WindowSys.ws_Rp;
  41.     ScrollRaster(rp, 0, lines * vw->vw_FontY, vw->vw_XStartPix,
  42.          vw->vw_YStartPix, vw->vw_XEndPix,
  43.          vw->vw_YStartPix + (vw->vw_MaxY * vw->vw_FontY) - 1);
  44. }
  45.